<html>
<head><meta charset="utf-8"><title>await suggestion · wg-async-foundations · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/index.html">wg-async-foundations</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html">await suggestion</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196609501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196609501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196609501">(May 06 2020 at 09:40)</a>:</h4>
<p>this issue <a href="https://github.com/rust-lang/rust/issues/61076" title="https://github.com/rust-lang/rust/issues/61076">https://github.com/rust-lang/rust/issues/61076</a> seems already fixed? <span class="user-mention" data-user-id="116009">@nikomatsakis</span> <br>
<a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ef1caa955ef1aceadf33aadd348e646c" title="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ef1caa955ef1aceadf33aadd348e646c">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ef1caa955ef1aceadf33aadd348e646c</a></p>



<a name="196609588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196609588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196609588">(May 06 2020 at 09:40)</a>:</h4>
<p><span class="user-mention" data-user-id="116773">@csmoe</span> see <a href="https://github.com/rust-lang/rust/issues/61076#issuecomment-525960471" title="https://github.com/rust-lang/rust/issues/61076#issuecomment-525960471">this comment</a> -- it is fixed in some contexts, but not all</p>



<a name="196609666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196609666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196609666">(May 06 2020 at 09:41)</a>:</h4>
<p>okay, I'll take care of them.</p>



<a name="196632591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196632591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196632591">(May 06 2020 at 13:17)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span> given <code>&lt;T as Future&gt;::Output</code>, how can I get <code>Output</code>'s type? normalizing it?</p>



<a name="196632733"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196632733" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196632733">(May 06 2020 at 13:18)</a>:</h4>
<p><span class="user-mention" data-user-id="116773">@csmoe</span> that is one way</p>



<a name="196632762"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196632762" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196632762">(May 06 2020 at 13:18)</a>:</h4>
<p>I'm not quite sure what you're trying to do, but, yeah I guess normalizing is the best</p>



<a name="196633293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196633293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196633293">(May 06 2020 at 13:22)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116009">nikomatsakis</span> <a href="#narrow/stream/187312-wg-async-foundations/topic/await.20suggestion/near/196632762" title="#narrow/stream/187312-wg-async-foundations/topic/await.20suggestion/near/196632762">said</a>:</p>
<blockquote>
<p>I'm not quite sure what you're trying to do, but, yeah I guess normalizing is the best</p>
</blockquote>
<p>thanks.</p>
<div class="codehilite"><pre><span></span><code><span class="k">async</span><span class="w"> </span><span class="k">fn</span> <span class="nf">foo</span><span class="p">(</span><span class="n">t</span>: <span class="nc">T</span><span class="p">)</span><span class="w"> </span>-&gt; <span class="nb">Result</span><span class="o">&lt;</span><span class="n">T</span><span class="p">,()</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="nb">Ok</span><span class="p">(</span><span class="n">t</span><span class="p">)</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
<span class="n">foo</span><span class="p">()</span><span class="o">?</span><span class="p">;</span><span class="w"></span>
</code></pre></div>


<p>here I'm trying to check whether <code>Future::Output </code> impl'ed <code>Try</code> trait?</p>



<a name="196640133"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196640133" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196640133">(May 06 2020 at 14:12)</a>:</h4>
<p><span class="user-mention" data-user-id="116773">@csmoe</span> ah I see, yeah</p>



<a name="196640168"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/await%20suggestion/near/196640168" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/await.20suggestion.html#196640168">(May 06 2020 at 14:12)</a>:</h4>
<p>I can't really think of a better way than normalizing</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>